package com.sitech.portal.system.service;

import java.util.List;

import com.sitech.ibnms.core.IPage;
import com.sitech.ibnms.core.PageForm;
import com.sitech.portal.system.domain.TblSYS_ROLE;
import com.sitech.portal.system.domain.TblSYS_USER_ROLE;

public interface ISysRoleService {

	public void add(TblSYS_ROLE tblSYS_ROLE);

	public void addDept(TblSYS_ROLE tblSYS_ROLE);

	public void update(TblSYS_ROLE tblSYS_ROLE);

	public void updateDept(TblSYS_ROLE tblSYS_ROLE);

	public void deleteRole(String roleId);

	public void deleteDept(String roleId);

	public TblSYS_ROLE findByPK(String roleID);

	public IPage findForList(PageForm pageForm);

	public List findForListToAll();

	public List findForListByDeptID();

	/**
	 * 取得部门名称
	 * 
	 * @return
	 */

	public List findDeptNameList();

	public List findForRoleListByLonginId(TblSYS_USER_ROLE obj);

	public List findForOptions();

	public List findForOptionsByManageUnitId(String[] manageUnitId);

	public List findForListByManageUnitId(String[] manageUnitId);
	// start add by yuanky
	public IPage findByParentRoleId(String roleId, PageForm pageForm);

	public List findNoPageByParentRoleId(String roleId);
	
	public int findCountByParentRoleId(String roleId);

	// end add by yuanky

	public TblSYS_ROLE findForTB_SYS_ROLEByRoleId(String roleID);
        //c是否具有管理员权限
        public Boolean isAdmin(String login_id);
}
